package main

import (
	"go-cwq/cee"
)

func main() {
	c := cee.New()
	c.AddRoute("GET", "/login/user", func(ctx *cee.Context) {
		ctx.WriteMsg("/login/user登录页")
	})

	c.AddRoute("GET", "/user/:user", func(ctx *cee.Context) {
		ctx.WriteMsg("user值是：" + ctx.Params["user"])
	})

	c.Run(":9090")
	//g.GET("/", func(ctx *gee.Context) {
	//	ctx.JSON(http.StatusOK,gee.H{
	//		"code" : 200,
	//		"msg" : "index.html",
	//		"data" : "index.html",
	//	})
	//})
	//// /user/:name
	//g.Run(":9090")
}
